home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3x / curs_attr.z / curs_attr
Encoding:
Text File  |  2002-10-03  |  9.3 KB  |  132 lines

  1.  
  2.  
  3.  
  4. ccccuuuurrrrssss____aaaattttttttrrrr((((3333XXXX))))                                                    ccccuuuurrrrssss____aaaattttttttrrrr((((3333XXXX))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _cccc_uuuu_rrrr_ssss______aaaa_tttt_tttt_rrrr:  _aaaa_tttt_tttt_rrrr_oooo_ffff_ffff, _wwww_aaaa_tttt_tttt_rrrr_oooo_ffff_ffff, _aaaa_tttt_tttt_rrrr_oooo_nnnn, _wwww_aaaa_tttt_tttt_rrrr_oooo_nnnn, _aaaa_tttt_tttt_rrrr_ssss_eeee_tttt, _wwww_aaaa_tttt_tttt_rrrr_ssss_eeee_tttt,
  10.      _ssss_tttt_aaaa_nnnn_dddd_eeee_nnnn_dddd, _wwww_ssss_tttt_aaaa_nnnn_dddd_eeee_nnnn_dddd, _ssss_tttt_aaaa_nnnn_dddd_oooo_uuuu_tttt, _wwww_ssss_tttt_aaaa_nnnn_dddd_oooo_uuuu_tttt - _cccc_uuuu_rrrr_ssss_eeee_ssss character and window
  11.      attribute control routines
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_cccc_uuuu_rrrr_ssss_eeee_ssss_...._hhhh_>>>>
  15.      _iiii_nnnn_tttt _aaaa_tttt_tttt_rrrr_oooo_ffff_ffff_((((_iiii_nnnn_tttt _aaaa_tttt_tttt_rrrr_ssss_))))_;;;;
  16.      _iiii_nnnn_tttt _wwww_aaaa_tttt_tttt_rrrr_oooo_ffff_ffff_((((_WWWW_IIII_NNNN_DDDD_OOOO_WWWW _****_wwww_iiii_nnnn_,,,, _iiii_nnnn_tttt _aaaa_tttt_tttt_rrrr_ssss_))))_;;;;
  17.      _iiii_nnnn_tttt _aaaa_tttt_tttt_rrrr_oooo_nnnn_((((_iiii_nnnn_tttt _aaaa_tttt_tttt_rrrr_ssss_))))_;;;;
  18.      _iiii_nnnn_tttt _wwww_aaaa_tttt_tttt_rrrr_oooo_nnnn_((((_WWWW_IIII_NNNN_DDDD_OOOO_WWWW _****_wwww_iiii_nnnn_,,,, _iiii_nnnn_tttt _aaaa_tttt_tttt_rrrr_ssss_))))_;;;;
  19.      _iiii_nnnn_tttt _aaaa_tttt_tttt_rrrr_ssss_eeee_tttt_((((_iiii_nnnn_tttt _aaaa_tttt_tttt_rrrr_ssss_))))_;;;;
  20.      _iiii_nnnn_tttt _wwww_aaaa_tttt_tttt_rrrr_ssss_eeee_tttt_((((_WWWW_IIII_NNNN_DDDD_OOOO_WWWW _****_wwww_iiii_nnnn_,,,, _iiii_nnnn_tttt _aaaa_tttt_tttt_rrrr_ssss_))))_;;;;
  21.      _iiii_nnnn_tttt _ssss_tttt_aaaa_nnnn_dddd_eeee_nnnn_dddd_((((_vvvv_oooo_iiii_dddd_))))_;;;;
  22.      _iiii_nnnn_tttt _wwww_ssss_tttt_aaaa_nnnn_dddd_eeee_nnnn_dddd_((((_WWWW_IIII_NNNN_DDDD_OOOO_WWWW _****_wwww_iiii_nnnn_))))_;;;;
  23.      _iiii_nnnn_tttt _ssss_tttt_aaaa_nnnn_dddd_oooo_uuuu_tttt_((((_vvvv_oooo_iiii_dddd_))))_;;;;
  24.      _iiii_nnnn_tttt _wwww_ssss_tttt_aaaa_nnnn_dddd_oooo_uuuu_tttt_((((_WWWW_IIII_NNNN_DDDD_OOOO_WWWW _****_wwww_iiii_nnnn_))))_;;;;
  25.  
  26. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  27.      All of these routines manipulate the current attributes of the named
  28.      window.  The current attributes of a window are applied to all characters
  29.      that are written into the window with _wwww_aaaa_dddd_dddd_cccc_hhhh, _wwww_aaaa_dddd_dddd_ssss_tttt_rrrr and _wwww_pppp_rrrr_iiii_nnnn_tttt_wwww.
  30.      Attributes are a property of the character, and move with the character
  31.      through any scrolling and insert/delete line/character operations.  To
  32.      the extent possible on the particular terminal, they are displayed as the
  33.      graphic rendition of characters put on the screen.
  34.  
  35.      The routine _aaaa_tttt_tttt_rrrr_ssss_eeee_tttt sets the current attributes of the given window to
  36.      _a_t_t_r_s.  The routine _aaaa_tttt_tttt_rrrr_oooo_ffff_ffff turns off the named attributes without
  37.      turning any other attributes on or off.  The routine _aaaa_tttt_tttt_rrrr_oooo_nnnn turns on the
  38.      named attributes without affecting any others.  The routine _ssss_tttt_aaaa_nnnn_dddd_oooo_uuuu_tttt is
  39.      the same as _aaaa_tttt_tttt_rrrr_oooo_nnnn_((((_AAAA______SSSS_TTTT_AAAA_NNNN_DDDD_OOOO_UUUU_TTTT_)))).  The routine _ssss_tttt_aaaa_nnnn_dddd_eeee_nnnn_dddd is the same as
  40.      _aaaa_tttt_tttt_rrrr_ssss_eeee_tttt_((((_0000_)))), that is, it turns off all attributes.
  41.  
  42.    AAAAttttttttrrrriiiibbbbuuuutttteeeessss
  43.      The following video attributes, defined in _<<<<_cccc_uuuu_rrrr_ssss_eeee_ssss_...._hhhh_>>>>, can be passed to
  44.      the routines _aaaa_tttt_tttt_rrrr_oooo_nnnn, _aaaa_tttt_tttt_rrrr_oooo_ffff_ffff, and _aaaa_tttt_tttt_rrrr_ssss_eeee_tttt, or OR-ed with the characters
  45.      passed to _aaaa_dddd_dddd_cccc_hhhh.
  46.  
  47.           _AAAA______SSSS_TTTT_AAAA_NNNN_DDDD_OOOO_UUUU_TTTT     Best highlighting mode of the terminal.
  48.           _AAAA______UUUU_NNNN_DDDD_EEEE_RRRR_LLLL_IIII_NNNN_EEEE    Underlining
  49.           _AAAA______RRRR_EEEE_VVVV_EEEE_RRRR_SSSS_EEEE      Reverse video
  50.           _AAAA______BBBB_LLLL_IIII_NNNN_KKKK        Blinking
  51.           _AAAA______DDDD_IIII_MMMM          Half bright
  52.           _AAAA______BBBB_OOOO_LLLL_DDDD         Extra bright or bold
  53.           _AAAA______AAAA_LLLL_TTTT_CCCC_HHHH_AAAA_RRRR_SSSS_EEEE_TTTT   Alternate character set
  54.           _AAAA______CCCC_HHHH_AAAA_RRRR_TTTT_EEEE_XXXX_TTTT     Bit-mask to extract a character
  55.           _CCCC_OOOO_LLLL_OOOO_RRRR______PPPP_AAAA_IIII_RRRR_((((_n_))))  Color-pair number _n
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                                                         PPPPaaaaggggeeee 1111
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. ccccuuuurrrrssss____aaaattttttttrrrr((((3333XXXX))))                                                    ccccuuuurrrrssss____aaaattttttttrrrr((((3333XXXX))))
  69.  
  70.  
  71.  
  72.      The following macro is the reverse of _CCCC_OOOO_LLLL_OOOO_RRRR______PPPP_AAAA_IIII_RRRR_((((_n_)))):
  73.  
  74.           _PPPP_AAAA_IIII_RRRR______NNNN_UUUU_MMMM_BBBB_EEEE_RRRR_((((_a_t_t_r_s_))))Returns the pair number associated
  75.                          with the _CCCC_OOOO_LLLL_OOOO_RRRR______PPPP_AAAA_IIII_RRRR_((((_n_)))) attribute.
  76.  
  77. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  78.      These routines always return _1111.
  79.  
  80. NNNNOOOOTTTTEEEESSSS
  81.      The header file _<<<<_cccc_uuuu_rrrr_ssss_eeee_ssss_...._hhhh_>>>> automatically includes the header files
  82.      _<<<<_ssss_tttt_dddd_iiii_oooo_...._hhhh_>>>> and _<<<<_uuuu_nnnn_cccc_tttt_rrrr_llll_...._hhhh_>>>>.
  83.  
  84.      Note that _aaaa_tttt_tttt_rrrr_oooo_ffff_ffff, _wwww_aaaa_tttt_tttt_rrrr_oooo_ffff_ffff, _aaaa_tttt_tttt_rrrr_oooo_nnnn, _wwww_aaaa_tttt_tttt_rrrr_oooo_nnnn, _aaaa_tttt_tttt_rrrr_ssss_eeee_tttt, _wwww_aaaa_tttt_tttt_rrrr_ssss_eeee_tttt, _ssss_tttt_aaaa_nnnn_dddd_eeee_nnnn_dddd
  85.      and _ssss_tttt_aaaa_nnnn_dddd_oooo_uuuu_tttt may be macros.
  86.  
  87. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  88.      _cccc_uuuu_rrrr_ssss_eeee_ssss(3X), _cccc_uuuu_rrrr_ssss______aaaa_dddd_dddd_cccc_hhhh(3X), _cccc_uuuu_rrrr_ssss______aaaa_dddd_dddd_ssss_tttt_rrrr(3X), _cccc_uuuu_rrrr_ssss______pppp_rrrr_iiii_nnnn_tttt_wwww(3X)
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.                                                                         PPPPaaaaggggeeee 2222
  128.  
  129.  
  130.  
  131.